import { createApp } from "vue";
// 引入路由
import router from "@/router/index"
// 引入仓库
import pinia from "@/store/index"
import ElementPlus from 'element-plus'
import 'virtual:svg-icons-register'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
import 'element-plus/dist/index.css'
import '@/permisstion';
import App from "@/App.vue";
const app = createApp(App)
import {isHasButton} from '@/directive/has'
isHasButton(app)
// 引入全局css
import '@/styles/index.scss';
import gloablComponent from './components/index';
app.use(router)
app.use(pinia)
// 使用自定义插件
app.use(gloablComponent);
app.use(ElementPlus,{
    locale: zhCn,
})
app.mount("#app");